package com.wxy.jk.pojo.po;

import com.wxy.jk.common.foreign.anno.ForeignCascade;
import com.wxy.jk.common.foreign.anno.ForeignField;
import com.wxy.jk.common.foreign.anno.ForeignTable;
import lombok.Data;

import javax.validation.constraints.NotBlank;


@Data
@ForeignTable(name = "dict_type")
public class DictType {
    //主键
    @ForeignField(column = "id", cascade = ForeignCascade.DEFAULT)
    private Integer id;
    //名称
    @NotBlank(message = "名称不能为空")
    private String name;
    //值
    @NotBlank(message = "值不能为空")
    private String value;
    //简介
    private String intro;


}
